<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="/WEB-INF/opesoft/tlds/layout.tld" prefix="layout"%>
<%@ taglib prefix="page" tagdir="/WEB-INF/tags/page"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<form name="editForm" id="editForm" action="dictionaryAction.do">
<table width="100%">
	<input type="hidden" name="op" value="${op}">
		<input type="hidden" name="dictionaryConfigId" value="${data.dictionaryConfigId}">
	<c:if test="${op=='update'}">
		<input type="hidden" name="id" value="${data.id}">
	</c:if>

	<page:field name="Code" error="code" width="50%">
		<input type="text" name="code" value="${data.code}" class="text">
	</page:field>
	<page:field name="Name" error="name" width="50%">
		<input type="text" name="name" value="${data.name}" class="text">
	</page:field>
	<page:field name="Active" error="active" width="50%">
		<page:select name="active" value="${data.active}">
			<option>
			<page:option value="true" />Yes
			<page:option value="false" />No
		</page:select>
	</page:field>
	<page:field name="Remark" error="remark" width="100%">
		<textarea name="remark" style="width:100%; height:80px;">${data.remark}</textarea>
	</page:field>
	<page:field width="100%">
		<c:if test="${op=='insert'}">
			<input type="button" value="Insert" onclick="template.submitForm();" class="button">
			<iframe style="display:none" onload="javascript:editPart.setName('New Dictionary Config');"></iframe>
		</c:if>
		<c:if test="${op=='update'}">
			<input type="button" value="Update" onclick="template.submitForm();" class="button">
			<input type="button" value="Cancel" onclick="template.cancel();" class="button">
			<iframe style="display:none" onload="javascript:editPart.setName('Edit Dictionary Config');"></iframe>
		</c:if>
		<input type="reset" value="Reset" onclick="template.reset();" class="button">
	</page:field>
</table>
</form>

